﻿
using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;

using System.Windows.Shapes;
using Sqo;

namespace Ivvy_Silverlight
{


    /// [Generated Jan 31 2011]

    public partial class i_vw_Appointment_Summary : ISqoDataObject
    {

        #region "private fields"

        private int _CalendarItem_ID;
        private string _Salutation;
        private string _FirstName;
        private string _MiddleName;
        private string _LastName;
        private string _Verb;
        private string _Entry_Name;
        private DateTime _Start_Date;
        private DateTime _End_Date;
        private int _Status_ID;

        #endregion

        #region "public properties"

        public int CalendarItem_ID
        {
            get { return _CalendarItem_ID; }
            set { _CalendarItem_ID = value; }
        }
        public string Salutation
        {
            get { return _Salutation; }
            set { _Salutation = value; }
        }
        public string FirstName
        {
            get { return _FirstName; }
            set { _FirstName = value; }
        }
        public string MiddleName
        {
            get { return _MiddleName; }
            set { _MiddleName = value; }
        }
        public string LastName
        {
            get { return _LastName; }
            set { _LastName = value; }
        }
        public string Verb
        {
            get { return _Verb; }
            set { _Verb = value; }
        }
        public string Entry_Name
        {
            get { return _Entry_Name; }
            set { _Entry_Name = value; }
        }
        public DateTime Start_Date
        {
            get { return _Start_Date; }
            set { _Start_Date = value; }
        }
        public DateTime End_Date
        {
            get { return _End_Date; }
            set { _End_Date = value; }
        }
        public int Status_ID
        {
            get { return _Status_ID; }
            set { _Status_ID = value; }
        }

        #endregion

        #region "ISqoDataObject"
        object ISqoDataObject.GetValue(System.Reflection.FieldInfo field) { return field.GetValue(this); }
        void ISqoDataObject.SetValue(System.Reflection.FieldInfo field, object value) { field.SetValue(this, value); }
                
        public int OID { get; set; }
        #endregion


        #region "COPY"
        public void Copy(i_vw_Appointment_Summary od_vw_Appointment_Summary)
        {            
                CalendarItem_ID = od_vw_Appointment_Summary.CalendarItem_ID;
                Salutation = od_vw_Appointment_Summary.Salutation;
                FirstName = od_vw_Appointment_Summary.FirstName;
                MiddleName = od_vw_Appointment_Summary.MiddleName;
                LastName = od_vw_Appointment_Summary.LastName;
                Verb = od_vw_Appointment_Summary.Verb;
                Entry_Name = od_vw_Appointment_Summary.Entry_Name;
                Start_Date = od_vw_Appointment_Summary.Start_Date;
                End_Date = od_vw_Appointment_Summary.End_Date;
                Status_ID = od_vw_Appointment_Summary.Status_ID;
        }
        #endregion



        #region "MAPPER"
        public static Ivvy_Silverlight.i_vw_Appointment_Summary Convert(i7SR.vw_Appointment_Summary od_vw_Appointment_Summary)
        {
            return new Ivvy_Silverlight.i_vw_Appointment_Summary()
            {

                CalendarItem_ID = Utils.IsNull(od_vw_Appointment_Summary.CalendarItem_ID),
                Salutation = Utils.IsNull(od_vw_Appointment_Summary.Salutation),
                FirstName = Utils.IsNull(od_vw_Appointment_Summary.FirstName),
                MiddleName = Utils.IsNull(od_vw_Appointment_Summary.MiddleName),
                LastName = Utils.IsNull(od_vw_Appointment_Summary.LastName),
                Verb = Utils.IsNull(od_vw_Appointment_Summary.Verb),
                Entry_Name = Utils.IsNull(od_vw_Appointment_Summary.Entry_Name),
                Start_Date = Utils.IsNull(od_vw_Appointment_Summary.Start_Date),
                End_Date = Utils.IsNull(od_vw_Appointment_Summary.End_Date),
                Status_ID = Utils.IsNull(od_vw_Appointment_Summary.Status_ID),

            };
        }
        #endregion


        #region "REVERSEMAPPER"
        public static Ivvy_Silverlight.i7SR.vw_Appointment_Summary ReverseConvert(i_vw_Appointment_Summary od_vw_Appointment_Summary)
        {
            return new Ivvy_Silverlight.i7SR.vw_Appointment_Summary()
            {

                CalendarItem_ID = Utils.ReverseIsNull(od_vw_Appointment_Summary.CalendarItem_ID).Value,
                Salutation = Utils.ReverseIsNull(od_vw_Appointment_Summary.Salutation),
                FirstName = Utils.ReverseIsNull(od_vw_Appointment_Summary.FirstName),
                MiddleName = Utils.ReverseIsNull(od_vw_Appointment_Summary.MiddleName),
                LastName = Utils.ReverseIsNull(od_vw_Appointment_Summary.LastName),
                Verb = Utils.ReverseIsNull(od_vw_Appointment_Summary.Verb),
                Entry_Name = Utils.ReverseIsNull(od_vw_Appointment_Summary.Entry_Name),
                Start_Date = Utils.ReverseIsNull(od_vw_Appointment_Summary.Start_Date),
                End_Date = Utils.ReverseIsNull(od_vw_Appointment_Summary.End_Date),
                Status_ID = Utils.ReverseIsNull(od_vw_Appointment_Summary.Status_ID),

            };
        }
        #endregion

    }
}

